<?php
//include the main class file
include('addon/Tax-meta-class/Tax-meta-class.php');
if (is_admin()){
  /* 
   * prefix of meta keys, optional
   */
  $prefix = 'building_tax_';
  /* 
   * configure your meta box
   */
  $config = array(
    'id' => 'demo_meta_box',          // meta box id, unique per meta box
    'title' => 'Demo Meta Box',          // meta box title
    'pages' => array('building-type'),        // taxonomy name, accept categories, post_tag and custom taxonomies
    'context' => 'normal',            // where the meta box appear: normal (default), advanced, side; optional
    'fields' => array(),            // list of meta fields (can be added by field arrays)
    'local_images' => false,          // Use local or hosted images (meta box images for add/remove)
    'use_with_theme' => true          //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
  );
  
  
  /*
   * Initiate your meta box
   */
  $my_meta =  new Tax_Meta_Class($config);
  
  $my_meta->addSelect($prefix.'show_home',array('0'=>'No','1'=>'Yes'),array('name'=> __('Show On Home Page ','building'), 'std'=> array('1')));
	add_action( 'admin_head', 'action_admin_head_tax');
  //Finish Meta Box Decleration
  $my_meta->Finish();
}
function action_admin_head_tax() {
    ?>
    <style type="text/css">		
		#edittag .form-table th{width:120px;}
		#edittag .form-table td {
			width: 600px;
		}
		#edittag .form-table .metabox-holder #icl_tax_building-type_lang {
			max-width: 300px;
			position: absolute;
			top: 37px;
			left:720px;
		}
    </style>
	<script type="text/javascript">
		jQuery(document).ready(function(){
			jQuery('#edittag .form-table .metabox-holder #icl_tax_building-type_lang').parent('.postbox-container').parent('.metabox-holder').parent('td').prev().remove();
		})		
	</script>
    <?php
}